package com.yeswater.multithread.chapter3.test3_1.test1;

import java.util.ArrayList;
import java.util.List;

/**
 * author : yeswater
 * date : 2023/10/22
 */

public class MyList {
    volatile private List<String> list = new ArrayList<>();

    public void add() {
        list.add(" yeswater ");
    }

    public int size() {
        return list.size();
    }
}
